import server from './server'

/**
 * 构造授权登陆页面
 *
 * @param state 需要跳转的页面URL
 * @returns {string}
 */
export function constructWechatAuth (state) {
    return 'https://open.weixin.qq.com/connect/oauth2/authorize?' +
        'appid=wxb8b965825bc38fa4' +
        '&redirect_uri=' + server.wechatAuth +
        '&response_type=code' +
        '&scope=snsapi_base' +
        '&state=' + state +
        '&connect_redirect=1#wechat_redirect'
}
